-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATAVIZ-2220: Fix multiple subtree tilesets #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! it would be great if we could upstream these fixes
@@ -10,12 +10,12 @@ import Long from 'long'; | |||
import {Tiles3DLoaderOptions} from '../../../tiles-3d-loader'; | |||
import {ImplicitOptions} from '../parse-3d-tile-header'; | |||
|
|||
const QUADTREE_DEVISION_COUNT = 4; | |||
const OCTREE_DEVISION_COUNT = 8; | |||
const QUADTREE_DIVISION_COUNT = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
Pull Request Test Coverage Report for Build 6972434665
💛 - Coveralls |
…ilesets DATAVIZ-2220: Fix multiple subtree tilesets
When dealing with tilesets with multiple subtrees there was a bug with
globalData
being passed by reference along the recursion meaning that when reaching the bottom of the depth-first search, the values would not be reset appropriately when pursuing the next path. This meant that the wrong subtrees would be requested.Additionally, when requesting tiles from a subtree they would be incorrectly indexed as the global x/y/z coordinates were being incorrectly shifted.
Lastly, when dealing with sparse tilesets, there was an issue causing a large number of failed requests to the base URL of the tileset. Instead, if a tile has no content, do not make a request.